package com.xiangge.zuoye.Demo1;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/18 14:20
 * @description 架构师类
 */
public class Architect extends Designer{
    private int stock;

    public Architect(double bonus, int stock) {
        super(bonus);
        this.stock = stock;
    }

    public Architect(Integer id, String name, Integer age, double salary, String bcyy, double bonus, int stock) {
        super(id, name, age, salary, bcyy, bonus);
        this.stock = stock;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public void getInfo(){
        System.out.println("编号："+getId()+",姓名："+getName()+
                ",年龄："+getAge()+",薪资："+getSalary()+
                ",编程语言："+bcyy+
                ",奖金"+getBonus()+
                ",持有股票数量："+getStock()+
                "%,职位：架构师");
    }

    @Override
    public String toString() {
        return "Architect{" +
                "stock=" + stock +
                '}';
    }
}
